import requests

r = requests.get("http://127.0.0.1:9999/index", params={
    "name": "brt",
    "passwd": "123123",
})
print(r.text)

r = requests.request("post", "http://127.0.0.1:9999/index", json={
    "name": "brt",
    "passwd": "654321",
    "age": 29,
})
# }, headers={'Content-Type': 'application/json'})
print(r.text)